package com.dubbo.demo.service.impl;


import com.dubbo.demo.entity.User;
import com.dubbo.demo.service.TestService;

/**
 * 
 * @author liufl
 * Dubbox直接Rest风格请求
 * 2017年7月25日
 */
public class TestRestServiceImpl implements TestService{

	//http://localhost:20880/user/testRestDubbo
	public User testSayDubbo() {
		System.out.println("---RestDubbo----服务被调用----------");
		return new User(123l, "RestDubbo");
	}

	//http://localhost:20880/user/testRestSay/张三
	public String say(String name) {
		System.out.println("----RestDubboSay---服务被调用----------"+System.currentTimeMillis());
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(name+" RestDubboSay:Hello!!!!!");
		return stringBuffer.toString();
	}

}
